package com.bestcem.xm.openplatform.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ds_openplatform_apicallrecord", autoResultMap = true)
public class OpenplatformApicallrecord extends BaseEntity2 {
    @TableId(value = "id")
    private String id;

    /**
     * 租户id
     */
    @TableField(value = "org_id")
    private String orgId;

    /**
     * api id
     */
    @TableField(value = "api_id")
    private String apiId;

    /**
     * 请求方式
     */
    @TableField(value = "method")
    private String method;

    /**
     * 请求路径
     */
    @TableField(value = "request_path")
    private String requestPath;

    /**
     * 请求参数
     */
    @TableField(value = "request_dict", typeHandler = FastjsonTypeHandler.class)
    private JSON requestDict;

    /**
     * 请求处理状态
     */
    @TableField(value = "status")
    private Integer status;
}